
	
/****** Object:  Stored Procedure [dbo].tblOpicCodeUpdate    Script Date: Thursday, October 27, 2011 ******/
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sptblOpicCodeUpdate]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [dbo].[sptblOpicCodeUpdate]
GO

	
	

	
/******************************************************************************
**		File: 
**		Name: [dbo].sptblOpicCodeUpdate
**		Desc: 
**
**		Return values:
** 
**		Called by:   
**              
**		Parameters:
**		Input							Output
**     ----------							-----------
**
**		Auth: CodeSmith
**		Date: 27/10/2011 17:41:38
*******************************************************************************
**		Change History
*******************************************************************************
**		Date:		Author:				Description:
**		--------		--------				-------------------------------------------
**    
*******************************************************************************/
CREATE PROCEDURE [dbo].sptblOpicCodeUpdate
	@CustomerName varchar(128), 
	@CustomerBranch varchar(3), 
	@OpicsCode varchar(20), 
	@Portfolio varchar(20) 
AS

UPDATE [dbo].[tblOpicCode] SET
	[OpicsCode] = @OpicsCode,
	[Portfolio] = @Portfolio
WHERE
	[CustomerName] = @CustomerName
	AND [CustomerBranch] = @CustomerBranch

GO
